/**
 * user modules
 */

//state
const state = {
    user:{}
}



// actions
const actions = {
    getUser(context:any,payload:any){
        console.log(payload);
        context.commit("setUser",payload);
    }
}

// mutations
const mutations = {
    setUser(state:any,payload:any){
        state.user=payload;
    }
}

export default {
    namespaced: true,
    state,
    actions,
    mutations
}